import Vue from 'vue'
import App from './App.vue'
//引入less
import "./assets/style.less";
//导入ajax交互组件axios
import axios from 'axios'
import VueRouter from 'vue-router'
import router from './router'
import { Swipe, SwipeItem, Lazyload, Row, Col, Button,Tabbar, TabbarItem,Sidebar, SidebarItem } from "vant";

// options 为可选参数，无则不传
Vue.use(Lazyload) //图片懒加载
  .use(Swipe)
  .use(SwipeItem) //轮播
  .use(Row)
  .use(Col) //行 列 栅格布局
  .use(Button) //按钮
  .use(Tabbar).use(TabbarItem) //底部导航栏
  .use(Sidebar).use(SidebarItem) //侧边导航栏
    ;
Vue.use(VueRouter);
Vue.config.productionTip = false

//原型扩展
Vue.prototype.$axios = axios

new Vue({
  router:router,
  render: h => h(App),
}).$mount('#app')
